import request from '@/utils/request'

// 查询直接释放列表
export function listRelease(query) {
  return request({
    url: '/direct/release/list',
    method: 'get',
    params: query
  })
}

// 查询直接释放详细
export function getRelease(id) {
  return request({
    url: '/direct/release/' + id,
    method: 'get'
  })
}

// 新增直接释放
export function addRelease(data) {
  return request({
    url: '/direct/release',
    method: 'post',
    data: data
  })
}

// 修改直接释放
export function updateRelease(data) {
  return request({
    url: '/direct/release',
    method: 'put',
    data: data
  })
}

// 删除直接释放
export function delRelease(id) {
  return request({
    url: '/direct/release/' + id,
    method: 'delete'
  })
}

// 导出直接释放
export function exportRelease(query) {
  return request({
    url: '/direct/release/export',
    method: 'get',
    params: query
  })
}

// 保存上传数据
export function changeData(data) {
  return request({
    url: '/direct/release/changeData',
    method: 'post',
    data: data
  })
}
